let num = 5
console.log(isNaN(num)) ;
if( !isNaN( num ) )
   {
    alert('是数字');
    return false;
   }
